<template>
  <view class="webview-container">
    <web-view :src="webviewUrl"  ></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      webviewUrl: "",
    };
  },
  methods: {
 
  },
  onLoad(options) {
    if (options.url) {
      this.webviewUrl = decodeURIComponent(options.url);
    } else if (options.src) {
      this.webviewUrl = decodeURIComponent(options.src);
    }
   

  },
};
</script>

<style scoped>
.webview-container {
  width: 100vw;
  height: 100vh;
}
</style>
